package resources;

<%@page contentType="text/html"%>
<%@page pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
<%@taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
<%@taglib uri="http://www.icesoft.com/icefaces/component" prefix="ice" %>
<f:view>
    <html>
        <head>
            <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
            <title>New Resources</title>
            <link rel="stylesheet" type="text/css" href="/WebIDE-war/faces/jsfcrud.css" />
        </head>
        <body>
            <ice:panelGroup id="messagePanel" layout="block">
                <ice:messages errorStyle="color: red" infoStyle="color: green" layout="table"/>
            </ice:panelGroup>
            <h1>New Resources</h1>
            <ice:form>
                <ice:inputHidden id="validateCreateField" validator="#{resources.validateCreate}" value="value"/>
                <ice:panelGrid columns="2">
                    <ice:outputText value="Id:"/>
                    <ice:inputText id="id" value="#{resources.resources.id}" title="Id" required="true" requiredMessage="The id field is required." />
                    <ice:outputText value="Url:"/>
                    <ice:inputText id="url" value="#{resources.resources.url}" title="Url" required="true" requiredMessage="The url field is required." />
                    <ice:outputText value="GroupsResourcesCollection:"/>
                    <ice:outputText escape="false" value="#{jsfcrud_class['webidewar.jsf.util.JsfUtil'].jsfcrud_method['getCollectionAsString'][resources.resources.groupsResourcesCollection == null ? jsfcrud_null : resources.resources.groupsResourcesCollection].jsfcrud_invoke}" title="GroupsResourcesCollection" />
                </ice:panelGrid>
                <br />
                <ice:commandLink action="#{resources.create}" value="Create"/>
                <br />
                <br />
                <ice:commandLink action="#{resources.listSetup}" value="Show All Resources Items" immediate="true"/>
                <br />
                <ice:commandLink value="Index" action="welcome" immediate="true" />
            </ice:form>
        </body>
    </html>
</f:view>
